<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        a {
            text-decoration: none;
        }

        .nav-list {
            width: 330px;
            /* height: 400px */
            background-color: #986;
            padding: 10px;
            background-image: url(images/bg.gif);
            /* margin: auto; */
        }

        ul {
            width: 300px;
            background-color: #fff;
            padding: 2px 10px;
        }

        ul li {
            list-style: none;
            line-height: 35px;
            border-bottom: 3px dotted #999;
            background-color: #fff;
        }

        ul>li>a:hover {
            color: red;
            text-decoration: underline;
        }

        ul li img {
            width: 18px;
            vertical-align: middle;
        }

        .title {
            font-size: 20px;
            color: #fff;
            font-weight: 600;
            border-left: 5px solid greenyellow;
            margin: 10px 0;
            padding: 0 0 0 10px;
        }
    </style>
</head>

<body>
    <div class="nav-list">
        <p class="title">爱宠知识</p>
        <ul>
            <li><img src="images/tb.gif" alt=""><a href="#"> 养狗比养猫对健康更有利</a></li>
            <li><img src="images/tb.gif" alt=""><a href="#">日本正宗柴犬亮相，你怎么看柴犬</a></li>
            <li><img src="images/tb.gif" alt=""><a href="#">狗狗歌曲《新年旺旺》</a></li>
            <li><img src="images/tb.gif" alt=""><a href="#">带宠兜风，开车带宠需要注意什么?</a> </li>
            <li><img src="images/tb.gif" alt=""><a href="#"> [爆笑]这狗狗太不给力了</a></li>
            <li><img src="images/tb.gif" alt=""><a href="#">狗狗与男童相同着装拍有爱造型照</a> </li>
            <li><img src="images/tb.gif" alt=""><a href="#"> 狗狗各个阶段健康大事件</a></li>
            <li><img src="images/tb.gif" alt=""><a href="#"> 调皮宠物狗陷在沙发里的搞笑瞬间</a></li>
            <li><img src="images/tb.gif" alt=""><a href="#"> 为什么每次大小便后，会用脚踢土?</a></li>
        </ul>
    </div>
</body>

</html>